java shutdown hook

49

java shutdown hook -

Thread printingHook = new Thread(() -> System.out.println("In the middle of a shutdown"));
Runtime.getRuntime().addShutdownHook(printingHook);

Comments

Submit
0 Comments